package com.hl.sfzy.service;

import com.github.pagehelper.PageInfo;
import com.hl.sfzy.entity.Heartk;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HeartkService {
    int removeByPrimaryKey(Integer id);//根据id删除
    int removeBatch(List<Long> ids);//根据id批量删除

    int add(Heartk heartk);//添加


    Heartk findByPrimaryKey(Long id);//根据id查询

    List<Heartk> find(@Param("pageNum") int pageNum,
                      @Param("pageSize") int pageSize);//查询所有



    PageInfo<Heartk> findByPage(@Param("pageNum") int pageNum,
                                @Param("pageSize") int pageSize,
                                Heartk heartk);//分页查询

    int editByPrimaryKey(Heartk heartk);//根据id修改
}
